[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 Using @ Macros and @X Codes

  There are primarily three places in PCBoard where you can use @ macros
  and @X codes.  They are:

    - Display files
    - Most PCBTEXT entries (some does not support @ macros or @X codes)
    - Inside of messages left on the BBS

  To use the macros or codes, simply enter them into the display file,
  PCBTEXT entry, or message editor in the proper format.  If you do, the
  code or macro will be properly substituted.

  To help illustrate how to use macros and codes, this example is going to
  show you how to enter an @ macro and then to colorize the text that is
  displayed by the @ macro.

  Begin by logging into PCBoard as the SysOp and getting to the conference
  command prompt.

  Shell to DOS by pressing F5.  You should now be at a DOS prompt.  If you
  are not, you have disabled local shell to DOS in
  PCBSetup | Configuration Options | System Control.

  Using a text editor of your choice, edit a file called TUTOR in the
  current directory.  In this file, enter @USER@ and save the file and
  exit your text editor.

  When you are back at the DOS prompt, type EXIT to return back to PCBoard.
  Now, type 6 TUTOR at the conference command prompt. You are using the
  6 SysOp command which enables you to view any file on disk.

  Once the command is entered, you should see one line which prints your
  user name on the screen.  Since you are the SysOp, it will print SYSOP
  instead of your user name.  You will notice that if you log in as a
  different user, the user's name will be displayed on the screen.

  Next, we will colorize the name to help provide emphasis.  Shell to DOS
  again, and edit your TUTOR file.

  In front of the @USER@, enter @X1F.  After the @USER@, enter a space
  followed by @X07is the current user.  Save the file, exit your text
  editor and type EXIT to return to PCBoard.

  View the TUTOR file using the 6 SysOp command.  This time, you should see
  your user name in white text on a blue background. After your user name,
  the text changes back to gray on black and the is the current user is
  printed.

  Even though this example showed you only one of the places you can use @X
  codes and @ macros, you can apply the principles learned in this example
  to the other two places where you can use these flexible tools.

See Also:
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson